package ApacheCommons.lang;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.Test;

/**
 * 随机数工具类
 * @author zhoujie
 * @date 2020-07-31
 */
@Slf4j
public class RandomStringUtilsTest {
    private static final String STR = "ABCDEFG123456789";
    @Test
    public void test01(){
        String str = RandomStringUtils.random(5, STR);
        String s2 = RandomStringUtils.randomGraph(1, 50);
        log.info(s2);
        log.info(str);
    }
}
